package com.zrh.jsd.web.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.io.*;

@Api(tags = "类用途描述：exception", value = "据说不显示,并且是真的")
@Component
@RestController
@RequestMapping("/exception")
@Slf4j
public class ExceptionTestController {
    /**
     * 以流的方式下载
     *
     * @param
     * @param
     */
    @ApiOperation("方法用途描述：exception")
    @GetMapping("/test1")
    public void test1() {
        int a = 9/0;
        log.info("aa==== {}",a);
    }
}
